import { notify } from '../../api/index.js'

// components/tip/tip.js
Component({

  /**
   * 页面的初始数据
   */
  data: {
    text: ''
  },

  ready: function () {
    const resNotify = notify({})

    resNotify.then(res => {
      console.log(res)
      this.setData({
        text: res.data.text
      })
    }).catch(e => {
      console.log(e, '通知')
    })
    
  },
})